import logging

logging.basicConfig(
    level=logging.ERROR,
    filename='log.txt',
    format='%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s',
    filemode='a',
)












